﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

/// <summary>
///OperationLog 的摘要说明
/// </summary>
public class OperationLog
{
    private long ID;
    private long UserID;
    private DateTime OpDateTime;
    private string Memo;
    private string UserIP;

    public long _ID
    {
        set { this.ID = value; }
        get { return this.ID; }
    }

    public long _UserID
    {
        set { this.UserID = value; }
        get { return this.UserID; }
    }

    public DateTime _OpDateTime
    {
        set { this.OpDateTime = value; }
        get { return this.OpDateTime; }
    }

    public string _Memo
    {
        set { this.Memo = value; }
        get { return this.Memo; }
    }

    public string _UserIP
    {
        set { this.UserIP = value; }
        get { return this.UserIP; }
    }

    public OperationLog()
	{
		
	}

    public void Add()
    {
        try
        {
            DAL.Tables.T_OperationLog.Insert(UserID, true, OpDateTime, true, Memo, true, UserIP, true);
        }
        catch
        {
            throw new Exception("添加操作日志失败");
        }
    }
}